import { Button } from 'antd'
import React from 'react'
import { Outlet, useNavigate } from 'react-router-dom'

function Index() {
  const navigate = useNavigate()
  return (
    <div>
      <Button onClick={()=>navigate('/list')}>去列表页</Button>
      <Outlet></Outlet>
    </div>
  )
}

export default Index
